var scripts = [null, null];
$('.page-content-area').ace_ajax('loadScripts', scripts, function() {

	jQuery(function($) {
		
		// 是否定时执行，显示时间设置
		var isTimingExecute = $('.isTimingExecute').val(), executeDate = $(".executeDate");
		if( isTimingExecute == 0 ) {
			executeDate.parents('.form-group').hide();
		} else if ( isTimingExecute == '' || isTimingExecute == null ) {
			$('.isTimingExecute').val(0);
			$('.isTimingExecute').trigger("chosen:updated");
			executeDate.parents('.form-group').hide();
		}
		$('.isTimingExecute').on('change', function(e, params) {
			if( params['selected'] == 1 ) {
				executeDate.parents('.form-group').show();
			} else {
				executeDate.parents('.form-group').hide();
			}
		});

	});
});
